package org.linlinjava.litemall.db.service;

import com.github.pagehelper.PageHelper;
import org.linlinjava.litemall.db.dao.AgedmallTopicDataMapper;
import org.linlinjava.litemall.db.dao.app.AppHomeMapper;
import org.linlinjava.litemall.db.domain.AgedmallTopicData;
import org.linlinjava.litemall.db.domain.AgedmallTopicDataExample;
import org.linlinjava.litemall.db.vo.app.StoreGoodsVo;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;


@Service
public class AgedmallTopicDataService {

    @Resource
    private AgedmallTopicDataMapper topicDataMapper;

    @Resource
    private AppHomeMapper appHomeMapper;

    public List<AgedmallTopicData> getByType(String type) {
        AgedmallTopicDataExample example = new AgedmallTopicDataExample();
        example.createCriteria().andDeletedEqualTo(false)
                .andTypeEqualTo(type);
        return topicDataMapper.selectByExample(example);
    }
}
